#pragma once

#include <map>
#include <string>
#include "Meeting.h"

using namespace std;

class MeetingCollection
{
public:
	MeetingCollection(void);
	~MeetingCollection(void);
	void addMeeting(string title, User& inviter, User& invitee, Interval interval);
	bool hasMeeting(const string& title);
	Meeting& getMeetingById(int id);
	Meeting& getMeetingByTitle(const string& title);
	bool deleteMeetingById(int id);
	int getMeetingIdSeq();
	int getIdByTitle(const string& title);
	map<int,Meeting> &getMeetings();
private:
	map<int,Meeting> meetings;
	map<string, int> meetingDict;
	int meetingIdSeq;
};

